package com.github.livebase.event;

/**
 * @ClassName EventBus
 * @description:
 * @author: biao532
 * @create: 2023-12-20 17:44
 * @Version 1.0
 **/
public interface EventBus {
    String EVENT_CHANGE_DATE = "event_change_date";
    String EVENT_APP_READY = "event_app_ready";
    String EVENT_APP_EXIT = "event_app_exit";
    String EVENT_CHANGE_TIME = "event_change_time";
    void publish(Event event);

    void register(String eventId, EventListener listener, boolean async);

    void unregister(String eventId, EventListener listener);
}
